// Order类
public class Order {
    private Date createDate;
    private Status status;
    private OrderDetail orderDetail;
    private Payment payment;

    public Order(Date createDate, Status status, OrderDetail orderDetail, Payment payment) {
        this.createDate = createDate;
        this.status = status;
        this.orderDetail = orderDetail;
        this.payment = payment;
    }

    public OrderDetail getOrderDetail() {
        return orderDetail;
    }

    public Payment getPayment() {
        return payment;
    }

    public enum Status {
        CREATE, PAID, SHIPPING, DELIVERED, CANCEL
    }
}
